import '@style/index.css';

import axios from 'axios';
import { useEffect } from 'react';

export default function Demo() {

    useEffect(() => {
        // axios.get('/static/data.json')
        axios.get('/api/ptapi/getHotFilms?ci=1&limit=10')
        .then(res => {
            console.log(res);
            
        })

        axios.get('/hai/lol')
        .then(res => {
            console.log(res);
            
        })
    }, [])

    return (
        <div className='box'>小的组件</div>
    )
}